//
//  NavService.m
//  investevent
//
//  Created by jiangshao on 16/3/14.
//  Copyright © 2016年 com.scj.investevent. All rights reserved.
//

#import "NavService.h"
#import "AppDelegate.h"

@implementation NavService

+(UINavigationController *)getNav{
    AppDelegate *delegate=[UIApplication sharedApplication].delegate;
    return (UINavigationController *)delegate.window.rootViewController;
}

+(void)setNavShow{
    [self getNav].navigationBar.frame=CGRectMake(0, 0, screenviewwidth, 64);
}

+(void)setNavHidden{
    [self getNav].navigationBar.frame=CGRectMake(0, -64, screenviewwidth, 64);
}


@end
